package org.pz.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserEntity implements Serializable {
    private Integer id;
    private String username;
    private String password;
    //角色列表
    private List<String> roles;

    public static class NullUserEntity extends UserEntity {}
}
